package com.singlemusic.service;

import java.io.Serializable;
import java.util.List;

public interface IBaseService<T> {
	public boolean add(T t);
	public boolean delete(T t);
	public List<T> findAll(Class<T> c);
	public boolean update(T t);
	public boolean merge(T t);
	public T findById(Class<T> c, Serializable id);
	public List<T> findByHql(String hql, String[] param);
	public List<T> findBySql(Class<T> c, String sql, String[] param);
	public List<T> findByPage(String hql, String[] param, int page, int row);
	public int getResultCount(String hql, String[] param);
}
